<template>
  <view class="oa-content">
    <!-- 顶部自定义导航 -->
    <tn-nav-bar fixed customBack :bottomShadow="false" backgroundColor="#FFFFFF00">
      <view slot="back" class='tn-custom-nav-bar__back'
        @click="goBack">
        <text class='icon tn-icon-left-arrow'></text>
      </view>
      <view class="tn-flex tn-flex-col-center tn-flex-row-center ">
        <text class="tn-text-bold tn-text-xl tn-color-black">用户信息</text>
      </view>
    </tn-nav-bar>
    
    
    <view class="" :style="{paddingTop: vuex_custom_bar_height + 10 + 'px'}">
      <view class="user-fixed">
        
      </view>
      <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-padding" style="position: relative;z-index: 9999;">
        <view class="justify-content-item">
          <view class="tn-flex tn-flex-col-center tn-flex-row-left">
            <view class="user-pic">
              <view class="user-image" style="background-image:url('https://cdn.nlark.com/yuque/0/2022/jpeg/280373/1664005699053-assets/web-upload/8645ea3a-e0a9-4422-8364-cc5ede305c9f.jpeg');width: 110rpx;height: 110rpx;background-size: cover;">
              </view>
            </view>
            <view class="tn-color-black" style="width: 68vw;margin-top: -10rpx;">
              <view class="tn-padding-right tn-padding-left-sm tn-text-xl tn-text-bold">
                付衣衣
              </view>
              <view class="tn-padding-right tn-padding-left-sm clamp-text-2 tn-text-sm" style="opacity: 0.4;margin-top: 10rpx">
                182 **** 8888
              </view>
            </view>
          </view>
        </view>
        <view class="justify-content-item tn-flex-row-center">
          <view class="tn-padding-left-xs">
            <text class="tn-icon-edit tn-text-xxl tn-color-gray"></text>
          </view>
        </view>
      </view>
      
      <view class="" style="margin-top: 40rpx;padding-bottom: 160rpx;">
        
        <view class="tn-padding-top" style="background-color: #FFFFFF;border-radius: 40rpx 40rpx 0 0;position: relative;z-index: 9999;">
          
          <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding">
            <view class="justify-content-item">
              <view class="tn-text-bold tn-text-lg">
                备注
              </view>
            </view>
            <view class="justify-content-item tn-color-gray tn-text-right">
              <view class="tn-color-gray">
                付总-设计主管
              </view>
            </view>
          </view>
          
          <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding">
            <view class="justify-content-item">
              <view class="tn-text-bold tn-text-lg">
                所属部门
              </view>
            </view>
            <view class="justify-content-item tn-color-gray tn-text-right">
              <view class="tn-color-gray">
                产品研发部
              </view>
            </view>
          </view>
          
          <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding">
            <view class="justify-content-item">
              <view class="tn-text-bold tn-text-lg">
                职位
              </view>
            </view>
            <view class="justify-content-item tn-color-gray tn-text-right">
              <view class="tn-color-gray">
                设计总监
              </view>
            </view>
          </view>
          
          <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding">
            <view class="justify-content-item">
              <view class="tn-text-bold tn-text-lg">
                Email
              </view>
            </view>
            <view class="justify-content-item tn-color-gray tn-text-right">
              <view class="tn-color-gray">
                fuyiyi@163.com
              </view>
            </view>
          </view>
          
          <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding">
            <view class="justify-content-item">
              <view class="tn-text-bold tn-text-lg">
                性别
              </view>
            </view>
            <view class="justify-content-item tn-color-gray tn-text-right">
              <view class="tn-color-gray">
                女
              </view>
            </view>
          </view>
          
          <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding">
            <view class="justify-content-item">
              <view class="tn-text-bold tn-text-lg">
                Ta的主页
              </view>
            </view>
            <view class="justify-content-item tn-color-gray tn-text-right">
              <view class="tn-color-gray tn-icon-right">
              </view>
            </view>
          </view>
          
          <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding">
            <view class="justify-content-item">
              <view class="tn-text-bold tn-text-lg">
                推荐给同事
              </view>
            </view>
            <view class="justify-content-item tn-color-gray tn-text-right">
              <view class="tn-color-gray tn-icon-right">
              </view>
            </view>
          </view>
          
        </view>
      
      </view>
      
      
      <!-- 好友-->
      <!-- 悬浮按钮-->
      <view class="tn-flex tn-footerfixed tn-padding">
        <view class="tn-flex-1 justify-content-item tn-margin-right-xs tn-text-center tn-bg-white" style="border-radius: 100rpx;">
          <tn-button backgroundColor="tn-bg-orange" padding="40rpx 0" width="100%" :fontSize="28" fontColor="#FFFFFF" shape="round" @click="callPhoneNumber">
            <text class="tn-icon-phone tn-padding-right-xs"></text>
            <text class="">打电话</text>
          </tn-button>
        </view>
        <view class="tn-flex-1 justify-content-item tn-margin-left-xs tn-text-center">
          <tn-button backgroundColor="#00C8B0 " padding="40rpx 0" width="100%" :fontSize="28" fontColor="#FFFFFF" shape="round" @click="tn('/homePages/chat')">
            <text class="tn-icon-comment tn-padding-right-xs"></text>
            <text class="">发消息</text>
          </tn-button>
        </view>
      </view>
      <!-- <view class="tn-footerfixed tn-padding" style="z-index: 9999;">
        <view class="tn-flex tn-flex-row-between tn-bg-white tn-padding-top-xs tn-padding-bottom-xs" style="border-radius: 100rpx;box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);">
          <view class="tn-flex-1 justify-content-item tn-margin-xs tn-text-center">
            <tn-button shape="round" backgroundColor="tn-bg-orange" fontColor="#FFFFFF" padding="35rpx 0" width="90%" :fontSize="30" @click="tn('')">
              <text class="tn-icon-comment tn-padding-right-xs"></text>
              <text class="">发消息</text>
            </tn-button>
          </view>
          <view class="tn-flex-1 justify-content-item tn-margin-xs tn-text-center">
            <tn-button shape="round" backgroundColor="#00C8B0" fontColor="#FFFFFF" padding="35rpx 0" width="90%" :fontSize="30" >
              <text class="tn-icon-phone tn-padding-right-xs"></text>
              <text class="">打电话</text>
            </tn-button>
          </view>
        </view>
      </view> -->
      
      <!-- 非好友-->
      <!-- <view class="tn-footerfixed tn-padding" style="z-index: 9999;">
        <view class="tn-flex tn-flex-row-between tn-bg-white tn-padding-top-xs tn-padding-bottom-xs" style="border-radius: 100rpx;box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);">
          <view class="tn-flex-1 justify-content-item tn-margin-xs tn-text-center">
            <tn-button shape="round" backgroundColor="#00C8B0" fontColor="#FFFFFF" padding="35rpx 0" width="90%" :fontSize="30">
              <text class="tn-icon-add tn-padding-right-xs"></text>
              <text class="">加好友</text>
            </tn-button>
          </view>
        </view>
      </view> -->
      
    </view>
    
    
    <view class='tn-tabbar-height'></view>
    
  </view>
</template>

<script>
  import template_page_mixin from '@/libs/mixin/template_page_mixin.js'
  export default {
    name: 'TemplateUser',
    mixins: [template_page_mixin],
    data(){
      return {
      }
    },
    methods: {
      // 跳转
      tn(e) {
      	uni.navigateTo({
      		url: e,
      	});
      },
      //拨打固定电话
      callPhoneNumber() {
        uni.makePhoneCall({
          phoneNumber: "18219128888",
        });
      },
    }
  }
</script>

<style lang="scss" scoped>
  /* 胶囊*/
  .tn-custom-nav-bar__back {
    width: 60%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 1000rpx;
    border: 1rpx solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    font-size: 18px;
    
    .icon {
      display: block;
      flex: 1;
      margin: auto;
      text-align: center;
    }
    
  }
  
  .oa-content{
    max-width: 640px;
    margin: 0 auto;
    // background-color: #F8F7F8;
    min-height: 100vh;
    padding-bottom: 60rpx;
    padding-bottom: calc(80rpx + env(safe-area-inset-bottom) / 2);
    padding-bottom: calc(80rpx + constant(safe-area-inset-bottom));
  }
  
  /* 用户头像 start */
  .user-image {
    width: 110rpx;
    height: 110rpx;
    position: relative;
  }
  
  .user-pic {
    background-size: cover;
    background-repeat: no-repeat;
    // background-attachment:fixed;
    background-position: top;
    border: 6rpx solid rgba(255,255,255,0.25);
    // box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
    border-radius: 1000rpx;
    overflow: hidden;
    // background-color: #FFFFFF;
  }
  
  // 渐变底色
  .user-fixed{
    max-width: 640px;
    margin: 0 auto;
    position: fixed;
    background: linear-gradient(90deg, #DBF2FE, #F3FDF8);
    top: 0;
    width: 100%;
    transition: all 0.25s ease-out;
    z-index: 100;
    height: 600rpx;
  }
  .user-fixed:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    mask-image: linear-gradient(to bottom, transparent, black);
    background: linear-gradient(90deg, #FFFFFF, #FFFFFF);	
  }
  
  /* 间隔线 start*/
  .tn-strip-bottom-min {
    width: 100%;
    border-bottom: 1rpx solid #F8F9FB;
  }
  
  .tn-strip-bottom {
   width: 100%;
   border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
  }
  
  .tn-strip-top {
   width: 100%;
   border-top: 20rpx solid rgba(241, 241, 241, 0.8);
  }
   /* 间隔线 end*/
  
  /* 底部悬浮按钮 start*/
  .tn-tabbar-height {
  	min-height: 160rpx;
  	height: calc(180rpx + env(safe-area-inset-bottom) / 2);
    height: calc(180rpx + constant(safe-area-inset-bottom));
  }
  .tn-footerfixed {
    max-width: 640px;
    margin: 0 auto;
    position: fixed;
    width: 100%;
    bottom: calc(40rpx + env(safe-area-inset-bottom));
    z-index: 1024;
    box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
  }
  /* 底部悬浮按钮 end*/
</style>
